import random
N=raw_input("Enter N:")
n=raw_input("Enter n:")

def mkRandom(N,n):
    randList = []
    for i in range(0,N):
        randList.append(random.randint(0,2**31-1))
    return randList

def pickRandom(N,randList):
    pickList=[]
    for i in range(0,random.randint(0,N)):
        pickList.append(randList[random.randint(0,N)])
    return  pickList

print pickRandom(int(N),mkRandom(int(N),int(n)))